package com.whfc.quality.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @ClasssName QualityTaskAddListParam
 * @Description 添加任务
 * @Author hw
 * @Date 2021/3/4 10:32
 * @Version 1.0
 */
@Data
public class QualityTaskAddListParam implements Serializable {

    /**
     * 检查人id
     */
    @NotNull
    private Integer userId;

    /**
     * 检查人姓名
     */
    @NotEmpty
    private String userName;

    /**
     * 检查类别
     */
    @NotNull
    private Integer checkType;

    /**
     * 检查时间（小时间在前大时间在后）
     */
    @Size(min = 1,message = "检查时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private List<Date> timeList;

    /**
     * 部位id
     */
    @Size(min = 1,message = "检查部位不能为空")
    private List<Integer> partIdList;

}
